package client;

import java.io.FileReader;
import java.io.FileWriter;

import message.Message;
import message.controller.MessageController;

/**
 * Represents the state that we have been logged
 */

public class Logged {
  
  private final MessageController<Void> queue_controller_;
  
  public Logged(FileReader reader, FileWriter writer) {
    //TODO
    queue_controller_ = null;
  }
  
  /**
   * Adds a message to the queue
   */
  public void acceptMessage(Message message) {
    assert message != null;
    queue_controller_.enqueueMessage(message);
  }
  
}
